﻿@using SmartSSO.Filters
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 极速管理后台</title>

    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)

</head>
<body>

    <div class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="/Passport" class="navbar-brand">授权中心</a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">

                    @if (Request.Cookies[UserAuthorizationAttribute.CookieUserName] != null &&
                         !string.IsNullOrWhiteSpace(Request.Cookies[UserAuthorizationAttribute.CookieUserName].Value))
                    {

                        //其他功能菜单

                        <li><a href="/UserManage">用户管理</a></li>
                    }

                </ul>

                @if (Request.Cookies[UserAuthorizationAttribute.CookieUserName] != null &&
                    !string.IsNullOrWhiteSpace(Request.Cookies[UserAuthorizationAttribute.CookieUserName].Value))
                {
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="/Profile"> @Request.Cookies[UserAuthorizationAttribute.CookieUserName].Value</a>
                        </li>
                        <li><a href="/Home/LoginOut">退出登录</a></li>
                    </ul>
                }

            </div>
        </div>
    </div>

    <div class="container body-content">
        <div style="min-height:650px;">
            @RenderBody()
        </div>
        <hr />
        <footer class="footer text-muted">
            <p>&copy; @DateTime.Now.Year SmartBooks 版权所有</p>
        </footer>
    </div>

    @Html.Partial("_PartialTongJiCode")

</body>
</html>